package models
{
	public class ThemeVo
	{
		public var path:String;
		public var index:int;

		public function ThemeVo()
		{
		}

		public function get dataUrl():String
		{
			if(path.indexOf('course')>=0)
			{
				return path+'/'+(index+1).toString()+'.jpg';
			}
//			var host:String='';
//			host=QNService.HOST;
			return path+'/'+(index+1).toString()+'.jpg';
		}

		public function get soundUrl():String
		{
			return  dataUrl.replace('.jpg','.mp3');
		}

		public function get thumbnail():String
		{
			return  dataUrl.replace('.jpg','s.jpg');
		}

		public function get theme():String
		{
			return path.substr(path.lastIndexOf('/')+1) + "/" + index;
		}
	}
}


